package com.shizhan.shizhan1;

public class Employee {
    private String name;    // 员工姓名
    private int age;        // 员工年龄
    private String position;    // 员工职位

    public void introduce() {
        System.out.println("大家好，我是" + position +"的"+ name+ "，今年" +  age + "岁" );
    }



    public Employee() {
    }

    public Employee(String name, int age, String position) {
        this.name = name;
        this.age = age;
        this.position = position;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return age
     */
    public int getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(int age) {
        this.age = age;
    }

    /**
     * 获取
     * @return position
     */
    public String getPosition() {
        return position;
    }

    /**
     * 设置
     * @param position
     */
    public void setPosition(String position) {
        this.position = position;
    }

    public String toString() {
        return "Employee{name = " + name + ", age = " + age + ", position = " + position + "}";
    }
}
